package com.origin.ebuy.bargd.dao.order;

import java.sql.SQLException;

import com.alibaba.fastjson.JSONArray;

public interface IOrderDao {
	
	/**
	 * 插入订单
	 * @param cols
	 * @param obj
	 * @return
	 * @throws SQLException
	 */
	public long insert(String[] cols,Object[] parames)throws SQLException;

	/**
	 * 查询所有的订单
	 * @param table
	 * @param where
	 * @param cols
	 * @return
	 * @throws SQLException
	 */
	public JSONArray queryAllOrder(String table,String where ,String[] cols)throws SQLException;
	
	/**
	 * 更新订单的状态
	 * @param id
	 * @param state
	 * @return
	 * @throws SQLException
	 */
	public int updateOrderState(String id,String state)throws SQLException;
}
